  @import (reference) "./../shared/color";
  @import (reference) "./../shared/modal";
@width-quote-head: 360px;
@height-quote-row: 40px;
@color-light-gray: #999;
.text-black {
  color: @list-text-black;
}

.watchlist-mini-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  font-size: 1.4rem;
  font-family: 微软雅黑;
  .tab-menu {
    height: 30px;
    line-height: 29px;
    margin: 0;
    border-bottom: 1px solid #D1D1D1;
    li {
      float: left;
      width: 50%;
      text-align: center;
      cursor: pointer;
      background-color: #F6F6F6;
      color: #666666;
      &.active {
        background-color: #fa3d41;
        color: #FFF;
      }
      i {
        font-size: 1.6rem;
        color: #979797;
      }
      i.icon-zuijin {
        font-size: 2rem;
      }
      &:first-child {
        border-right: 1px solid #D1D1D1;
      }
      & > * {
        vertical-align: middle;
      }
    }
    img {
      // display: none;
      // width: 20px;
      // height: 20px;
      margin-bottom: 2px;
      &.active {
        display: inline-block;
      }
    }
  }
  // .watchlist-all,
  .add-group,
  .watchlist-group,
  .latest-group {
    display: none;
    &.active {
      display: block;
    }
    .watchlist-group-header {
      position: relative;
      line-height: 2rem;
      padding: 7px 10px 7px 0px;
      background-color: #FFF;
      border-top: 1px solid #EEE;
      border-bottom: 1px solid #DDD;
      cursor: pointer;
      &:hover {
        background-color: #EEE;
      }
      span.group-title {
        display: inline-block;
        color: #333333;
        font-weight: bold;
        border-left: 2px solid #fa3d41;
        padding-left: 8px;
        width: 90%;
        height: 15px;
        line-height: 100%;
      }
    }
  }
  .watchlist-group-table {
    width: 100%;
    line-height: 26px;
    tbody {
      background-color: #fdfdfd;
      tr:hover {
        background-color: #e3edf9;
      }
    }
    thead {
      tr{
        background-color: @color-gray-view-background;
        td.table-cell{
          font-size: 1.4rem;
          padding: 2px 8px;
        }
      }
    }
    tr {
      position: relative;
      padding: 10px;
      line-height: 32px;
      // &:nth-child(2n) {
      //   background-color: @color-gray-view-background;
      // }
      td {
        font-size: 1.4rem;
        border-bottom: 1px solid #E8E8E8;
        cursor: pointer;
        &.name-cell{
          font-size: 1.3rem;
          line-height: 16px;
          color: #333333;
          .symbol-cell {
            font-size: 10px;
            line-height: 12px;
          }
        }
      }
    }
    .table-cell {
      .text-black;
      flex-grow: 1;
      flex-shrink: 1;
      justify-content: space-between;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 4px 0px 3px;
      // font-size: 1.2rem;
      &.text-right {
        text-align: right;
      }
      &.append-module {
        overflow: visible;
        position: relative;
        color: #666;
      }
      &.text-go-up {
        color: @color-red-red;
      }
      &.text-go-down {
        color: @color-green-gray;
      }
      &.text-go-zero {
        color: #666;
      }
      &.text-percent {
        &::after {
          content: "%"
        }
      }
      &:first-child {
        width: 65px;
        padding-left: 9px;
      }
      &:last-child {
        padding-right: 6px;
        text-align: center;
      }
    }
  }
  .dropdown {
    color: @color-black-dark;
    float: right;
    margin: 0;
    overflow: visible;
    .dropdown-toggle {
      color: #999;
    }
    // 弹出菜单
    ul.dropdown-menu {
      position: fixed;
      left: 262px;
      min-width: 140px;
      line-height: 20px;
      margin: 0;
      border: 1px solid #DDD;
      border-radius: 3px;
      box-shadow: 1px 1px 1px 0 #888;
      background-color: #FFF;
      z-index: 999;
      li {
        position: relative;
        cursor: pointer;
        padding: 10px;
        border: 0 solid #DDD;
        text-overflow: ellipsis;
        text-align: left;
        &:hover {
          background-color: #DDD;
        }
        i {
          display: inline-block;
          width: 20px;
          text-align: center;
          color: #333;
          &.i-left {
            margin-right: 10px;
          }
          &.i-right {
            margin-left: 10px;
          }
        }
      }
      li.disabled {
        cursor: default;
        color: #777;
      }
      li.copy-item:hover ul.copy-list {
        display: block;
      }
      ul.copy-list {
        display: none;
        position: absolute;
        left: 101%;
        top: 0;
        width: auto;
        min-width: 140px;
        border: 1px solid #DDD;
        border-radius: 3px;
        box-shadow: 1px 1px 3px 0 #888;
        background: #FFF;
        background-clip: padding-box;
        li {
          padding: 10px;
          border: 0 solid #DDD;
          overflow: hidden;
          text-overflow: ellipsis;
          text-align: center;
          &:hover {
            background-color: #DDD;
          }
        }
      }
    }
  }
  hr {
    margin: 0;
  }
  // 点击空白区域关闭下拉菜单
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    // background-color: #000;
  }
  .modal-backdrop.fade {
    opacity: 0;
    transition: opacity .15s linear;
  }
  .modal-backdrop.in {
    opacity: .5;
  }
}
.selected {
  background-color: #e3edf9;
}
.watchlist-mini-container .add-group .watchlist-group-header {
  padding-left: 10px;
}